|
@@ -1093,11 +1093,11 @@ $(document).ready(function() {
|
|
// 初始化 清单编号窗口 参数
|
|
// 初始化 清单编号窗口 参数
|
|
this.qdSpreadSetting = {
|
|
this.qdSpreadSetting = {
|
|
cols: [
|
|
cols: [
|
|
- {title: '编号', field: 'code', width: 80, formatter: '@'},
|
|
|
|
- {title: '名称', field: 'name', width: 120, formatter: '@'},
|
|
|
|
- {title: '单位', field: 'unit', width: 50, formatter: '@'},
|
|
|
|
- {title: '单价', field: 'unit_price', width: 50},
|
|
|
|
- {title: '图册号', field: 'name', width: 60, formatter: '@'},
|
|
|
|
|
|
+ {title: '编号', field: 'code', hAlign: 0, width: 80, formatter: '@'},
|
|
|
|
+ {title: '名称', field: 'name', hAlign: 0, width: 120, formatter: '@'},
|
|
|
|
+ {title: '单位', field: 'unit', hAlign: 1, width: 50, formatter: '@'},
|
|
|
|
+ {title: '单价', field: 'unit_price', hAlign: 2, width: 50},
|
|
|
|
+ {title: '图册号', field: 'name', hAlign: 0, width: 60, formatter: '@'},
|
|
],
|
|
],
|
|
emptyRows: this.billsCount,
|
|
emptyRows: this.billsCount,
|
|
headRows: 1,
|
|
headRows: 1,
|
|
@@ -1107,8 +1107,8 @@ $(document).ready(function() {
|
|
// 初始化 部位数量复核表 参数
|
|
// 初始化 部位数量复核表 参数
|
|
this.posSpreadSetting = {
|
|
this.posSpreadSetting = {
|
|
cols: [
|
|
cols: [
|
|
- {title: '部位', field: 'bw', width: 80, formatter: '@'},
|
|
|
|
- {title: '图册号', field: 'drawingCode', formatter: '@', width: 60},
|
|
|
|
|
|
+ {title: '部位', field: 'bw', hAlign: 0, width: 80, formatter: '@'},
|
|
|
|
+ {title: '图册号', field: 'drawingCode', hAlign: 0, formatter: '@', width: 60},
|
|
],
|
|
],
|
|
emptyRows: this.posCount,
|
|
emptyRows: this.posCount,
|
|
headRows: 1,
|
|
headRows: 1,
|
|
@@ -1116,7 +1116,7 @@ $(document).ready(function() {
|
|
};
|
|
};
|
|
for (let iNum = 1; iNum <= this.billsCount; iNum++) {
|
|
for (let iNum = 1; iNum <= this.billsCount; iNum++) {
|
|
this.posSpreadSetting.cols.push(
|
|
this.posSpreadSetting.cols.push(
|
|
- {title: '清单' + iNum, field: 'bills' + iNum, width: 50}
|
|
|
|
|
|
+ {title: '清单' + iNum, field: 'bills' + iNum, hAlign: 2, width: 50}
|
|
)
|
|
)
|
|
}
|
|
}
|
|
this.posSpread = SpreadJsObj.createNewSpread($('.batch-l-b', this.obj)[0]);
|
|
this.posSpread = SpreadJsObj.createNewSpread($('.batch-l-b', this.obj)[0]);
|
|
@@ -1136,6 +1136,7 @@ $(document).ready(function() {
|
|
// 初始化 清单编号、部位数量复核表 表格
|
|
// 初始化 清单编号、部位数量复核表 表格
|
|
this.initView();
|
|
this.initView();
|
|
SpreadJsObj.initSheet(this.dealSpread.getActiveSheet(), this.dealSpreadSetting);
|
|
SpreadJsObj.initSheet(this.dealSpread.getActiveSheet(), this.dealSpreadSetting);
|
|
|
|
+ SpreadJsObj.refreshColumnAlign(this.dealSpread.getActiveSheet());
|
|
// 拉取签约清单数据
|
|
// 拉取签约清单数据
|
|
if (dealBills) {
|
|
if (dealBills) {
|
|
SpreadJsObj.loadSheetData(this.dealSpread.getActiveSheet(), 'data', dealBills.data);
|
|
SpreadJsObj.loadSheetData(this.dealSpread.getActiveSheet(), 'data', dealBills.data);
|
|
@@ -1198,6 +1199,7 @@ $(document).ready(function() {
|
|
// 初始化 清单编号
|
|
// 初始化 清单编号
|
|
const qdSheet = this.qdSpread.getActiveSheet();
|
|
const qdSheet = this.qdSpread.getActiveSheet();
|
|
SpreadJsObj.initSheet(qdSheet, this.qdSpreadSetting);
|
|
SpreadJsObj.initSheet(qdSheet, this.qdSpreadSetting);
|
|
|
|
+ SpreadJsObj.refreshColumnAlign(qdSheet);
|
|
// 清理原有数据
|
|
// 清理原有数据
|
|
SpreadJsObj.beginMassOperation(qdSheet);
|
|
SpreadJsObj.beginMassOperation(qdSheet);
|
|
qdSheet.clear(0, 0, qdSheet.getRowCount(), qdSheet.getColumnCount(), GC.Spread.Sheets.SheetArea.viewport, GC.Spread.Sheets.StorageType.data);
|
|
qdSheet.clear(0, 0, qdSheet.getRowCount(), qdSheet.getColumnCount(), GC.Spread.Sheets.SheetArea.viewport, GC.Spread.Sheets.StorageType.data);
|
|
@@ -1209,6 +1211,7 @@ $(document).ready(function() {
|
|
// 初始化 部位数量复核表
|
|
// 初始化 部位数量复核表
|
|
const posSheet = this.posSpread.getActiveSheet();
|
|
const posSheet = this.posSpread.getActiveSheet();
|
|
SpreadJsObj.initSheet(posSheet, this.posSpreadSetting);
|
|
SpreadJsObj.initSheet(posSheet, this.posSpreadSetting);
|
|
|
|
+ SpreadJsObj.refreshColumnAlign(posSheet);
|
|
// 清理原有数据
|
|
// 清理原有数据
|
|
SpreadJsObj.beginMassOperation(posSheet);
|
|
SpreadJsObj.beginMassOperation(posSheet);
|
|
posSheet.setColumnWidth(0, 45, GC.Spread.Sheets.SheetArea.rowHeader);
|
|
posSheet.setColumnWidth(0, 45, GC.Spread.Sheets.SheetArea.rowHeader);
|
|
@@ -1286,7 +1289,7 @@ $(document).ready(function() {
|
|
$('#searchAccount').click(() => {
|
|
$('#searchAccount').click(() => {
|
|
const data = {
|
|
const data = {
|
|
keyword: $('#searchName').val(),
|
|
keyword: $('#searchName').val(),
|
|
- }
|
|
|
|
|
|
+ };
|
|
postData('/search/user', data, (data) => {
|
|
postData('/search/user', data, (data) => {
|
|
const resultDiv = $('#searchResult');
|
|
const resultDiv = $('#searchResult');
|
|
if (data) {
|
|
if (data) {
|