|
@@ -58,10 +58,10 @@
|
|
:scroll="{x: 1500,y:300 }"
|
|
:scroll="{x: 1500,y:300 }"
|
|
:pagination="false"
|
|
:pagination="false"
|
|
>
|
|
>
|
|
- <span slot="operationSlot" slot-scope="text, record">
|
|
|
|
|
|
+ <span slot="operationSlot" slot-scope="text, record,index">
|
|
<a @click="handleExportXls(record)" style="color:green;">关联委外</a>
|
|
<a @click="handleExportXls(record)" style="color:green;">关联委外</a>
|
|
<a-divider type="vertical" />
|
|
<a-divider type="vertical" />
|
|
- <a @click="handleExportXls(record)" style="color:red;">删行</a>
|
|
|
|
|
|
+ <a @click="handleDelete(record,index)" style="color:red;">删行</a>
|
|
</span>
|
|
</span>
|
|
|
|
|
|
</a-table>
|
|
</a-table>
|
|
@@ -90,6 +90,7 @@
|
|
</a-button>
|
|
</a-button>
|
|
</div>
|
|
</div>
|
|
</a-modal>
|
|
</a-modal>
|
|
|
|
+ <subcontract-order-modal ref="subcontractOrderModal"></subcontract-order-modal>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -100,11 +101,12 @@
|
|
import { syDeclarationElementsAdd,queryLatelyDeclarationElements } from '@api/document/shipmentList'
|
|
import { syDeclarationElementsAdd,queryLatelyDeclarationElements } from '@api/document/shipmentList'
|
|
import {Dictionaries} from '@api/document/book.js'
|
|
import {Dictionaries} from '@api/document/book.js'
|
|
import {salesOrder } from '@api/document/order'
|
|
import {salesOrder } from '@api/document/order'
|
|
|
|
+ import subcontractOrderModal from '@views/order/subcontractOrderModal.vue'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'manualModal', // 报关要素
|
|
name: 'manualModal', // 报关要素
|
|
mixins: [JeecgListMixin],
|
|
mixins: [JeecgListMixin],
|
|
- components: { JEllipsis, moment },
|
|
|
|
|
|
+ components: { JEllipsis, moment,subcontractOrderModal },
|
|
|
|
|
|
data() {
|
|
data() {
|
|
let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} /> // 省略
|
|
let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} /> // 省略
|
|
@@ -118,63 +120,63 @@
|
|
{
|
|
{
|
|
title: '销售订单账套号',
|
|
title: '销售订单账套号',
|
|
width: 140,
|
|
width: 140,
|
|
- dataIndex: 'priceRemarks',
|
|
|
|
|
|
+ dataIndex: 'account',
|
|
className: 'replacecolor',
|
|
className: 'replacecolor',
|
|
ellipsis: true
|
|
ellipsis: true
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '销售订单号',
|
|
title: '销售订单号',
|
|
width: 120,
|
|
width: 120,
|
|
- dataIndex: 'priceRemarks',
|
|
|
|
|
|
+ dataIndex: 'orderNumber',
|
|
className: 'replacecolor',
|
|
className: 'replacecolor',
|
|
ellipsis: true
|
|
ellipsis: true
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title: '销售订单行消息',
|
|
|
|
|
|
+ title: '销售订单行信息',
|
|
width: 140,
|
|
width: 140,
|
|
- dataIndex: 'priceRemarks',
|
|
|
|
|
|
+ dataIndex: 'irowNo',
|
|
className: 'replacecolor',
|
|
className: 'replacecolor',
|
|
ellipsis: true
|
|
ellipsis: true
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '存货编码',
|
|
title: '存货编码',
|
|
width: 120,
|
|
width: 120,
|
|
- dataIndex: 'priceRemarks',
|
|
|
|
|
|
+ dataIndex: 'inventoryCode',
|
|
className: 'replacecolor',
|
|
className: 'replacecolor',
|
|
ellipsis: true
|
|
ellipsis: true
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '存货名称',
|
|
title: '存货名称',
|
|
width: 120,
|
|
width: 120,
|
|
- dataIndex: 'priceRemarks',
|
|
|
|
|
|
+ dataIndex: 'inventoryName',
|
|
className: 'replacecolor',
|
|
className: 'replacecolor',
|
|
ellipsis: true
|
|
ellipsis: true
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '规格型号',
|
|
title: '规格型号',
|
|
width: 120,
|
|
width: 120,
|
|
- dataIndex: 'priceRemarks',
|
|
|
|
|
|
+ dataIndex: 'specificationAndModel',
|
|
className: 'replacecolor',
|
|
className: 'replacecolor',
|
|
ellipsis: true
|
|
ellipsis: true
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '颜色',
|
|
title: '颜色',
|
|
width: 80,
|
|
width: 80,
|
|
- dataIndex: 'priceRemarks',
|
|
|
|
|
|
+ dataIndex: 'colour',
|
|
className: 'replacecolor',
|
|
className: 'replacecolor',
|
|
ellipsis: true
|
|
ellipsis: true
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '委外订单号',
|
|
title: '委外订单号',
|
|
width: 120,
|
|
width: 120,
|
|
- dataIndex: 'priceRemarks',
|
|
|
|
|
|
+ dataIndex: 'ccode',
|
|
className: 'replacecolor',
|
|
className: 'replacecolor',
|
|
ellipsis: true
|
|
ellipsis: true
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '委外订单行号',
|
|
title: '委外订单行号',
|
|
width: 120,
|
|
width: 120,
|
|
- dataIndex: 'priceRemarks',
|
|
|
|
|
|
+ dataIndex: 'ivouchRowNo',
|
|
className: 'replacecolor',
|
|
className: 'replacecolor',
|
|
ellipsis: true
|
|
ellipsis: true
|
|
},
|
|
},
|
|
@@ -196,19 +198,17 @@
|
|
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- //获取数据
|
|
|
|
- getData(){
|
|
|
|
|
|
+ //获取数据
|
|
|
|
+ getData(){
|
|
var that = this;
|
|
var that = this;
|
|
// that.spinIsShow = true;
|
|
// that.spinIsShow = true;
|
|
this.loading = true
|
|
this.loading = true
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
salesOrder(this.queryParam).then(res => {
|
|
salesOrder(this.queryParam).then(res => {
|
|
- debugger
|
|
|
|
// that.spinIsShow = false;
|
|
// that.spinIsShow = false;
|
|
this.loading = false
|
|
this.loading = false
|
|
if (res.success) {
|
|
if (res.success) {
|
|
- debugger
|
|
|
|
- that.orderListData = res.result.records;
|
|
|
|
|
|
+ that.manualData = res.result.records;
|
|
that.pagination = {
|
|
that.pagination = {
|
|
total: res.result.total,
|
|
total: res.result.total,
|
|
current: res.result.current,
|
|
current: res.result.current,
|
|
@@ -220,7 +220,7 @@
|
|
|
|
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- },
|
|
|
|
|
|
+ },
|
|
//查询
|
|
//查询
|
|
searchQuery(){
|
|
searchQuery(){
|
|
if(this.queryParam.account == '' || !this.queryParam.account){
|
|
if(this.queryParam.account == '' || !this.queryParam.account){
|
|
@@ -244,6 +244,14 @@
|
|
//保存
|
|
//保存
|
|
addSave(){
|
|
addSave(){
|
|
|
|
|
|
|
|
+ },
|
|
|
|
+ //关联委外
|
|
|
|
+ handleExportXls(){
|
|
|
|
+ this.$refs.subcontractOrderModal.subcontractOrderModVis = true
|
|
|
|
+ },
|
|
|
|
+ //删行
|
|
|
|
+ handleDelete(record,index){
|
|
|
|
+ this.manualData.splice(index, 1);
|
|
},
|
|
},
|
|
//关闭弹窗
|
|
//关闭弹窗
|
|
close(){
|
|
close(){
|