Commit d762a457 authored by xiangzj's avatar xiangzj

市场秩序和创意酒接口联调

parent d59bde3f
...@@ -342,7 +342,6 @@ ...@@ -342,7 +342,6 @@
</button> </button>
</view> </view>
</view> </view>
</view>
</template> </template>
<script> <script>
...@@ -874,4 +873,4 @@ ...@@ -874,4 +873,4 @@
.btn-text-l { .btn-text-l {
color: $wly-primary-color; color: $wly-primary-color;
} }
</style> </style>
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
</view> </view>
<view class="bottom-area"></view> <view class="bottom-area"></view>
<view class="bottom"> <view class="bottom">
<button class="btn" type="default" @tap="submit"> <button class="btn" type="default" @tap="submit" v-if="condition.type==='edit'">
<text class="btn-text">提交</text> <text class="btn-text">提交</text>
</button> </button>
</view> </view>
...@@ -112,6 +112,7 @@ ...@@ -112,6 +112,7 @@
console.log('breakwords-handle-detail', option) console.log('breakwords-handle-detail', option)
if (option && option.id) { if (option && option.id) {
this.condition.id = option.id this.condition.id = option.id
this.condition.type = option.type
this.getOrderDetail() this.getOrderDetail()
} }
}, },
......
...@@ -68,8 +68,8 @@ ...@@ -68,8 +68,8 @@
</view> </view>
</view> </view>
<button v-if="item.status==='CONFIRMED'" class="item-btn item-btn-l" type="default" <button v-if="item.status==='CONFIRMED'" class="item-btn item-btn-l" type="default"
@click="checkDetal(item)"><text class="item-btn-text">发起申诉</text></button> @click="checkDetal(item,'edit')"><text class="item-btn-text">发起申诉</text></button>
<button class="item-btn" type="default" @click="checkDetal(item)"><text <button class="item-btn" type="default" @click="checkDetal(item,'view')"><text
class="item-btn-text">查看</text></button> class="item-btn-text">查看</text></button>
</view> </view>
</cell> </cell>
...@@ -287,9 +287,9 @@ ...@@ -287,9 +287,9 @@
this.condition.year = e.detail.value this.condition.year = e.detail.value
this.getProcessOrder(true) this.getProcessOrder(true)
}, },
checkDetal(item) { checkDetal(item,type) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/breakwords-handle-detail/breakwords-handle-detail?id=${item.id}` url: `/pages/breakwords-handle-detail/breakwords-handle-detail?id=${item.id}&type=${type}`
}) })
} }
} }
......
...@@ -273,44 +273,45 @@ ...@@ -273,44 +273,45 @@
setTimeout(function() { setTimeout(function() {
uni.hideLoading(); uni.hideLoading();
}, 2000); }, 2000);
// const res = await apiGetContactLetterDetail({ const res = await apiGetContactLetterDetail({
// taskAssignmentId: this.condition.taskAssignmentId taskAssignmentId: this.condition.taskAssignmentId
// }) })
let res = { // let res = {
"result": "S", // "result": "S",
"message": "操作成功", // "message": "操作成功",
"data": { // "data": {
"taskAssignmentId": "T000008HK", // "taskAssignmentId": "T000008HK",
"bankName": "开户行", // "bankName": "开户行",
"accountName": "户名", // "accountName": "户名",
"accountNumber": "账号", // "accountNumber": "账号",
"contact": "联系人", // "contact": "联系人",
"contactPhone": "联系电话", // "contactPhone": "联系电话",
"receiveAddress": "收货地址", // "receiveAddress": "收货地址",
"contactUser": "收获联系人", // "contactUser": "收获联系人",
"receiveContactPhone": "联系人电话", // "receiveContactPhone": "联系人电话",
"expectInsuredValue": "期望保价", // "expectInsuredValue": "期望保价",
"expectLogistics": "期望物流公司", // "expectLogistics": "期望物流公司",
"receiveRecorderName": "录入人", // "receiveRecorderName": "录入人",
"receiveRecorderTime": "录入时间", // "receiveRecorderTime": "录入时间",
"remitPaidParty": "打款方", // "remitPaidParty": "打款方",
"remitPaidUrl": "打款凭证照片", // "remitPaidUrl": "打款凭证照片",
"remitRecorderName": "打款录入人", // "remitRecorderName": "打款录入人",
"remitRecorderTime": "打款录入时间", // "remitRecorderTime": "打款录入时间",
"shipLogistics": "发货物流公司", // "shipLogistics": "发货物流公司",
"shipLogisticsNo": "发货单号", // "shipLogisticsNo": "发货单号",
"shipTime": "发货时间", // "shipTime": "发货时间",
"shipRecorderName": "发货人", // "shipRecorderName": "发货人",
"entryDataList": [{ // "entryDataList": [{
"contactLetterId": "联络函编号", // "contactLetterId": "联络函编号",
"contactLetterName": "联络函名称", // "contactLetterName": "联络函名称",
"createUserName": "创建人", // "createUserName": "创建人",
"status": "状态", // "status": "状态",
"statusName": "状态", // "statusName": "状态",
"createTime": "生成时间" // "createTime": "生成时间"
}] // }]
} // }
} // }
uni.hideLoading(); uni.hideLoading();
for (let key in res.data) { for (let key in res.data) {
this.$set(this.contactLetterDetail, key, res.data[key]) this.$set(this.contactLetterDetail, key, res.data[key])
......
...@@ -231,44 +231,45 @@ ...@@ -231,44 +231,45 @@
setTimeout(function() { setTimeout(function() {
uni.hideLoading(); uni.hideLoading();
}, 2000); }, 2000);
// const res = await apiGetContactLetterDetail({ const res = await apiGetContactLetterDetail({
// taskAssignmentId: this.condition.taskAssignmentId taskAssignmentId: this.condition.taskAssignmentId
// }) })
let res = { // let res = {
"result": "S", // "result": "S",
"message": "操作成功", // "message": "操作成功",
"data": { // "data": {
"taskAssignmentId": "T000008HK", // "taskAssignmentId": "T000008HK",
"bankName": "开户行", // "bankName": "开户行",
"accountName": "户名", // "accountName": "户名",
"accountNumber": "账号", // "accountNumber": "账号",
"contact": "联系人", // "contact": "联系人",
"contactPhone": "联系电话", // "contactPhone": "联系电话",
"receiveAddress": "收货地址", // "receiveAddress": "收货地址",
"contactUser": "收获联系人", // "contactUser": "收获联系人",
"receiveContactPhone": "联系人电话", // "receiveContactPhone": "联系人电话",
"expectInsuredValue": "期望保价", // "expectInsuredValue": "期望保价",
"expectLogistics": "期望物流公司", // "expectLogistics": "期望物流公司",
"receiveRecorderName": "录入人", // "receiveRecorderName": "录入人",
"receiveRecorderTime": "录入时间", // "receiveRecorderTime": "录入时间",
"remitPaidParty": "打款方", // "remitPaidParty": "打款方",
"remitPaidUrl": "打款凭证照片", // "remitPaidUrl": "打款凭证照片",
"remitRecorderName": "打款录入人", // "remitRecorderName": "打款录入人",
"remitRecorderTime": "打款录入时间", // "remitRecorderTime": "打款录入时间",
"shipLogistics": "发货物流公司", // "shipLogistics": "发货物流公司",
"shipLogisticsNo": "发货单号", // "shipLogisticsNo": "发货单号",
"shipTime": "发货时间", // "shipTime": "发货时间",
"shipRecorderName": "发货人", // "shipRecorderName": "发货人",
"entryDataList": [{ // "entryDataList": [{
"contactLetterId": "联络函编号", // "contactLetterId": "联络函编号",
"contactLetterName": "联络函名称", // "contactLetterName": "联络函名称",
"createUserName": "创建人", // "createUserName": "创建人",
"status": "状态", // "status": "状态",
"statusName": "状态", // "statusName": "状态",
"createTime": "生成时间" // "createTime": "生成时间"
}] // }]
} // }
} // }
uni.hideLoading(); uni.hideLoading();
for (let key in res.data) { for (let key in res.data) {
this.$set(this.contactLetterDetail, key, res.data[key]) this.$set(this.contactLetterDetail, key, res.data[key])
......
...@@ -162,80 +162,81 @@ ...@@ -162,80 +162,81 @@
setTimeout(function() { setTimeout(function() {
uni.hideLoading(); uni.hideLoading();
}, 2000); }, 2000);
// const res = await apiGetMissionList(params) const res = await apiGetMissionList(params)
// const res = await apiGetClueList() // const res = await apiGetClueList()
let res = { // let res = {
"result": "S", // "result": "S",
"message": "操作成功", // "message": "操作成功",
"data": { // "data": {
"count": 27, // "count": 27,
"page": 1, // "page": 1,
"pagesize": 10, // "pagesize": 10,
"data": [{ // "data": [{
"rno": "1", // "rno": "1",
"requestname": "测试111", // "requestname": "测试111",
"pcurl": "", // "pcurl": "",
"departmentname": "", // "departmentname": "",
"sysname": "市场秩序", // "sysname": "市场秩序",
"createdate": "2021-07-30", // "createdate": "2021-07-30",
"workflowtype": "-4001", // "workflowtype": "-4001",
"appurl": "string", // "appurl": "string",
"requestid": "-206", // "requestid": "-206",
"ticketId": "string", // "ticketId": "string",
"entryType": "1", // "entryType": "1",
"status": "已处理" // "status": "已处理"
}, // },
{ // {
"rno": "2", // "rno": "2",
"requestname": "联络函待填写收货信息", // "requestname": "联络函待填写收货信息",
"pcurl": "", // "pcurl": "",
"departmentname": "", // "departmentname": "",
"sysname": "市场秩序", // "sysname": "市场秩序",
"createdate": "2021-07-30", // "createdate": "2021-07-30",
"workflowtype": "-4001", // "workflowtype": "-4001",
"appurl": "T00001STE", // "appurl": "T00001STE",
"requestid": "-203", // "requestid": "-203",
"ticketId": "T00001STE", // "ticketId": "T00001STE",
"entryType": "3", // "entryType": "3",
"status": "已处理", // "status": "已处理",
"viloationName": "影响质量", // "viloationName": "影响质量",
"childTypeName": "childTypeName", // "childTypeName": "childTypeName",
"terminalName": "terminalName", // "terminalName": "terminalName",
"terminalAddress": "terminalAddress", // "terminalAddress": "terminalAddress",
"productName": "productName", // "productName": "productName",
"productQty": "productQty", // "productQty": "productQty",
}, // },
{ // {
"rno": "3", // "rno": "3",
"requestname": "string", // "requestname": "string",
"pcurl": "", // "pcurl": "",
"departmentname": "", // "departmentname": "",
"sysname": "市场秩序", // "sysname": "市场秩序",
"createdate": "2021-07-30", // "createdate": "2021-07-30",
"workflowtype": "-4001", // "workflowtype": "-4001",
"appurl": "string", // "appurl": "string",
"requestid": "-200", // "requestid": "-200",
"ticketId": "string", // "ticketId": "string",
"entryType": "4", // "entryType": "4",
"status": "已处理" // "status": "已处理"
}, // },
{ // {
"rno": "4", // "rno": "4",
"requestname": "联络函待填写收货信息", // "requestname": "联络函待填写收货信息",
"pcurl": "", // "pcurl": "",
"departmentname": "", // "departmentname": "",
"sysname": "市场秩序", // "sysname": "市场秩序",
"createdate": "2021-08-01", // "createdate": "2021-08-01",
"workflowtype": "-4001", // "workflowtype": "-4001",
"appurl": "T00001UD0", // "appurl": "T00001UD0",
"requestid": "-208", // "requestid": "-208",
"ticketId": "T00001UD0", // "ticketId": "T00001UD0",
"entryType": "1", // "entryType": "1",
"status": "已处理" // "status": "已处理"
} // }
] // ]
} // }
} // }
uni.hideLoading(); uni.hideLoading();
const { const {
...@@ -297,6 +298,7 @@ ...@@ -297,6 +298,7 @@
}, },
checkTab(i) { checkTab(i) {
this.activeTabIndex = i this.activeTabIndex = i
this.lists = []
this.getClueList() this.getClueList()
}, },
handleStatustext(item) { handleStatustext(item) {
......
...@@ -74,7 +74,8 @@ ...@@ -74,7 +74,8 @@
apiGetCategoryDetailById, apiGetCategoryDetailById,
apiSaveCustom apiSaveCustom
} from '@/servers/diyWine.js' } from '@/servers/diyWine.js'
import md5 from "@/uview-ui/libs/function/md5.js";
export default { export default {
data() { data() {
return { return {
...@@ -145,9 +146,10 @@ ...@@ -145,9 +146,10 @@
methods: { methods: {
async getCategory() { async getCategory() {
const params = { const params = {
"OutsideGoodsID": "432608038931800064", "OutsideGoodsID": this.orderDetail.ITEM[0].ORDERED_PROD,
"Action": "guanying.customcategory.list.get", "Action": "guanying.customcategory.list.get",
...this.signParams "SecretKey": "8B72E5CB394E3CABB56DC8E04AC4DE7F",
"Sign": md5.hex_md5(`Action=guanying.customcategory.list.get&OutsideGoodsID=${this.orderDetail.ITEM[0].ORDERED_PROD}&SecretKey=8B72E5CB394E3CABB56DC8E04AC4DE7F`)
} }
const res2 = await apiGetCategory(params) const res2 = await apiGetCategory(params)
// const res2 = { // const res2 = {
...@@ -189,11 +191,12 @@ ...@@ -189,11 +191,12 @@
async getCategoryDetail() { async getCategoryDetail() {
const params = { const params = {
"Action": "guanying.customtemplate.list.get", "Action": "guanying.customtemplate.list.get",
"OutsideGoodsID": "432608038931800064", "OutsideGoodsID": this.orderDetail.ITEM[0].ORDERED_PROD,
"TemplateCategoryID": this.activeTabItem.TemplateCategoryID, "TemplateCategoryID": this.activeTabItem.TemplateCategoryID,
"PageID": "1", "PageID": "1",
"Pagesize": "99", "Pagesize": "99",
...this.signParams "SecretKey": "8B72E5CB394E3CABB56DC8E04AC4DE7F",
"Sign": md5.hex_md5(`Action=guanying.customtemplate.list.get&OutsideGoodsID=${this.orderDetail.ITEM[0].ORDERED_PROD}&PageID=1&Pagesize=99&TemplateCategoryID=${this.activeTabItem.TemplateCategoryID}&SecretKey=8B72E5CB394E3CABB56DC8E04AC4DE7F`)
} }
const res2 = await apiGetCategoryDetail(params) const res2 = await apiGetCategoryDetail(params)
// const res2 = { // const res2 = {
...@@ -228,7 +231,8 @@ ...@@ -228,7 +231,8 @@
const params = { const params = {
"TemplateID": this.activeTemplateItem.TemplateID, "TemplateID": this.activeTemplateItem.TemplateID,
"Action": "guanying.goodstemplate.detail.query", "Action": "guanying.goodstemplate.detail.query",
...this.signParams "SecretKey": "8B72E5CB394E3CABB56DC8E04AC4DE7F",
"Sign": md5.hex_md5(`Action=guanying.goodstemplate.detail.query&TemplateID=${this.activeTemplateItem.TemplateID}&SecretKey=8B72E5CB394E3CABB56DC8E04AC4DE7F`)
} }
const res2 = await apiGetCategoryDetailById(params) const res2 = await apiGetCategoryDetailById(params)
// const res2 = { // const res2 = {
...@@ -248,7 +252,7 @@ ...@@ -248,7 +252,7 @@
// ErrMsg: "", // ErrMsg: "",
// Status: "Success" // Status: "Success"
// } // }
this.activeTemplateItemDetail = res2.Data.ConfigContent.InitImgList[0] this.activeTemplateItemDetail = res2.Data.ConfigContent
}, },
async handleSave() { async handleSave() {
if (!this.activeTemplateItem.OriginImagePath) { if (!this.activeTemplateItem.OriginImagePath) {
...@@ -265,12 +269,13 @@ ...@@ -265,12 +269,13 @@
// "src": imgpathArr[1] // "src": imgpathArr[1]
// } // }
const params = { const params = {
"OutsideGoodsID": "432608038931800064", "OutsideGoodsID": this.orderDetail.ITEM[0].ORDERED_PROD,
"TemplateID": this.templateCategoryDetail.TemplateID, "TemplateID": this.activeTemplateItem.TemplateID,
"info": JSON.stringify(this.activeTemplateItemDetail), "Info": JSON.stringify(this.activeTemplateItemDetail),
// "info": JSON.stringify(info), // "info": JSON.stringify(info),
"Action": "guanying.adapter.works.savecustom", "Action": "guanying.adapter.works.savecustom",
...this.signParams "SecretKey": "8B72E5CB394E3CABB56DC8E04AC4DE7F",
"Sign": md5.hex_md5(`Action=guanying.adapter.works.savecustom&Info=${JSON.stringify(this.activeTemplateItemDetail)}&OutsideGoodsID=${this.orderDetail.ITEM[0].ORDERED_PROD}&TemplateID=${this.activeTemplateItem.TemplateID}&SecretKey=8B72E5CB394E3CABB56DC8E04AC4DE7F`)
} }
const res = await apiSaveCustom(params) const res = await apiSaveCustom(params)
this.isEdit = false this.isEdit = false
...@@ -473,4 +478,4 @@ ...@@ -473,4 +478,4 @@
width: 120rpx; width: 120rpx;
height: 120rpx; height: 120rpx;
} }
</style> </style>
...@@ -106,7 +106,7 @@ export async function apiGetMissionList(params) { ...@@ -106,7 +106,7 @@ export async function apiGetMissionList(params) {
* @returns {Promise<AxiosResponse<T>>} * @returns {Promise<AxiosResponse<T>>}
*/ */
export async function apiGetContactLetterDetail(params) { export async function apiGetContactLetterDetail(params) {
const res = await apiHelper.post('/wmdpwebservices/taskassignment/contactletter/detail', params) const res = await apiHelper.post('/wmdpwebservices/taskassignment/yishang/contactletter/detail', params)
return res return res
} }
......
...@@ -378,8 +378,12 @@ function bit_rol(num, cnt) ...@@ -378,8 +378,12 @@ function bit_rol(num, cnt)
return (num << cnt) | (num >>> (32 - cnt)); return (num << cnt) | (num >>> (32 - cnt));
} }
// module.exports = {
// md5 : function(str){
// return hex_md5(str);
// }
// }
// 在md5.js 的最后加入 暴露的方法
module.exports = { module.exports = {
md5 : function(str){ hex_md5
return hex_md5(str);
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment