|
@@ -28,6 +28,12 @@
|
|
|
{{item.wareName}}
|
|
|
</span>
|
|
|
</template>
|
|
|
+ <template #abnormalStatus="{ item }">
|
|
|
+ {{showAbnormalStatus(item)}}
|
|
|
+ </template>
|
|
|
+ <template #exHandle="{ item }">
|
|
|
+ {{showExHandle(item)}}
|
|
|
+ </template>
|
|
|
</byTable>
|
|
|
|
|
|
<!--详情-->
|
|
@@ -300,7 +306,7 @@ const config = computed(() => {
|
|
|
label: "处理状态",
|
|
|
prop: "handleStatus",
|
|
|
align: "left",
|
|
|
- width: 180,
|
|
|
+ width: 100,
|
|
|
},
|
|
|
render(type) {
|
|
|
return type == '2' ? '已处理' : '未处理';
|
|
@@ -308,6 +314,25 @@ const config = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
+ label: "异常场景",
|
|
|
+ slot: "abnormalStatus",
|
|
|
+ align: "left",
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ render(type) {
|
|
|
+ return type == '2' ? '已处理' : '未处理';
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
+ label: "处理方案",
|
|
|
+ slot: "exHandle",
|
|
|
+ align: "left",
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
label: "京东商品名称",
|
|
|
slot: "wareName",
|
|
|
align: "left",
|
|
@@ -388,17 +413,6 @@ const config = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
- label: "处理方案",
|
|
|
- prop: "exHandle",
|
|
|
- align: "left",
|
|
|
- width: 180,
|
|
|
- },
|
|
|
- render(type) {
|
|
|
- return proxy.dictValueLabel(type, abnormalStatusDict.value);
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- attrs: {
|
|
|
label: "EPT采购单定制相关信息",
|
|
|
prop: "wareProperty",
|
|
|
align: "left",
|
|
@@ -737,6 +751,45 @@ const submit = async () => {
|
|
|
|
|
|
}
|
|
|
|
|
|
+const showAbnormalStatus = (item) => {
|
|
|
+ if (item.handleStatus != 2 || isNullOrUndefined(item.exHandle)){
|
|
|
+ return ''
|
|
|
+ }
|
|
|
+ let dict = []
|
|
|
+ if(item.exDesc == '1'){
|
|
|
+ dict = abnormalStatusDictDh.value
|
|
|
+ }else if(item.exDesc == '2') {
|
|
|
+ dict = abnormalStatusDictSh.value
|
|
|
+ }
|
|
|
+ const abnormalStatus = item.exHandle.substring(0,2)
|
|
|
+ const abnormalStatusDict = dict.filter(x=> {
|
|
|
+ return x.value == abnormalStatus
|
|
|
+ });
|
|
|
+ return abnormalStatusDict[0].label
|
|
|
+}
|
|
|
+
|
|
|
+const showExHandle = (item) => {
|
|
|
+ if (item.handleStatus != 2 || isNullOrUndefined(item.exHandle)){
|
|
|
+ return ''
|
|
|
+ }
|
|
|
+
|
|
|
+ let dict = []
|
|
|
+ if(item.exDesc == '1'){
|
|
|
+ dict = abnormalStatusDictDh.value
|
|
|
+ }else if(item.exDesc == '2') {
|
|
|
+ dict = abnormalStatusDictSh.value
|
|
|
+ }
|
|
|
+ const abnormalStatus = item.exHandle.substring(0,2)
|
|
|
+ const abnormalStatusDict = dict.filter(x=> {
|
|
|
+ return x.value == abnormalStatus
|
|
|
+ });
|
|
|
+ const exHandle = abnormalStatusDict[0].chile.filter(x=>{
|
|
|
+ return x.value == item.exHandle
|
|
|
+ })
|
|
|
+
|
|
|
+ return exHandle[0].label
|
|
|
+}
|
|
|
+
|
|
|
getDictlist();
|
|
|
getList();
|
|
|
</script>
|